import 'package:flutter/material.dart';

class WrapDemo extends StatefulWidget {
  const WrapDemo({ Key? key }) : super(key: key);

  @override
  _WrapDemoState createState() => _WrapDemoState();
}

class _WrapDemoState extends State<WrapDemo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Wrap Demo'),elevation: 0,),
      body: Wrap(
        direction: Axis.horizontal,
        children: [
          Container(
            width: 100,
            height: 100,
            color: Colors.pink,
          ),
          Container(
            width: 100,
            height: 100,
            color: Colors.pink,
          )
        ],
      ),
    );
  }
}